<?php
if(!session_id()) { session_start(); }
include_once('../classes/contact.class.php');
if(!isset($_POST['title']) || !isset($_POST['message'])) {
	return 0;
	//0 means false
}
$contact = new Contact($_POST['title'], $_POST['message']);
return $result = $contact->sendMessage();
?>